package com.yanqu.road.entity.disperseGold;

import com.yanqu.road.entity.DataObject;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class DisperseGoldRecord extends DataObject {
    private long userId;
    private long serverId;

    // 没用了
    private long disperseId;

    // 送财结果Map<送财ID，送财状态eDisperseGoldStatus>
    private Map<Long, Integer> detailMap = new ConcurrentHashMap<>();

    public DisperseGoldRecord() {
    }

    public DisperseGoldRecord(long userId, long serverId, long disperseId) {
        this.userId = userId;
        this.serverId = serverId;
        this.disperseId = disperseId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        if(this.serverId != serverId) {
            this.serverId = serverId;
            setUpdateOption();
        }
    }

    public long getDisperseId() {
        return disperseId;
    }

    public void setDisperseId(long disperseId) {
        if(this.disperseId != disperseId) {
            this.disperseId = disperseId;
            setUpdateOption();
        }
    }

    public Map<Long, Integer> getDetailMap() {
        return detailMap;
    }

    public void setDetailMap(Map<Long, Integer> detailMap) {
        this.detailMap = detailMap;
        setUpdateOption();
    }
}
